<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<style>
	.list-group{list-style:decimal inside;}
	.list-group-item {display: list-item;}
</style>
<!-- Driver Log -->
<div class="container">
	<div class="row text-center outer">
		<h3>${dirver.appName}&nbsp;${dirver.name} 错误日志</h3>
	</div>
	<div class="row hidden" id="dirverJson">${dirverJson}</div>
	
	<form class="form-horizontal" role="form" method="post">
		<div class="panel-group">
			<!-- 功能按钮区域 -->
			<div class="panel">
				<div class="panel-heading">
					<input id="ckBoxAll" type="checkbox" class="hidden incBtn">
					<button id="syncAll" type="button" class="btn btn-primary hidden incBtn">
						<span class="fa fa-rocket"></span>同步所有(<span id="logCount">0</span>)
					</button>
					<button id="sync" type="button" class="btn btn-primary hidden incBtn">
						<span class="fa fa-send"></span>同步
					</button>
					<button id="add" type="button" class="btn btn-primary hidden incBtn">
						<span class="fa fa-plus"></span>新增
					</button>
					<button id="del" type="button" class="btn btn-primary">
						<span class="fa fa-trash"></span>删除
					</button>
					<button id="download" type="button" class="btn btn-primary">
						<span class="fa fa-download"></span>所有日志
					</button>
					<button id="refresh" type="button" class="btn btn-primary">
						<span class="fa fa-refresh"></span>刷新
					</button>
					<button id="driverBackIndexBtn" type="button" class="btn btn-default pull-right"><span class="fa fa-reply"></span>返回 </button>
				</div>
			</div>
			
			<!-- 日志显示区域 -->
			<div id="logPanelArea"></div>
		</div>
	</form>
	
	<!-- 日志显示面板模板-->
	<div id="logPanelTemplate" class="hidden">
		<div class="panel panel-warning">
			<!-- 标题 -->
			<div class="panel-heading">
				<input type="checkbox" class="log-id" /> 
				<span class="log-index"></span>.
				<u data-toggle="collapse" class="fastsyncer_pointer log-title"></u>
				<span class="pull-right log-date"></span>
			</div>
			<!-- 参数 -->
			<div class="logPanel panel-collapse collapse log-panel-id">
				<div class="panel-body">
					<div class="form-group">
						<label class="col-sm-1 control-label">参数</label>
						<div class="col-sm-11">
							<textarea class="form-control log-params" style="resize:none;" rows="10"></textarea>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-12 text-right">
							<a class="formartJson" href="javascript:;"><span class="fa fa-magic fa-1x fa-flip-horizontal fastsyncer_pointer" title="格式化"></span>格式化</a>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	<!-- 新增日子对话框-->
	<div id="addLogDialog" class="hidden">
		<p>事件:
		<select name="type" class="form-control select-control">
			<option value="INSERT">新增</option>
			<option value="UPDATE">修改</option>
			<option value="DELETE">删除</option>
		</select>
		</p>
		<p>参数<strong class="driverVerifcateRequired">*</strong>:<textarea asd-valid="require" class="form-control log-params" style="resize:none;" rows="10"></textarea></p>
		<a class="formartJson" href="javascript:;"><span class="fa fa-magic fa-1x fastsyncer_pointer" title="格式化"></span>格式化</a>
	</div>
	
</div>

<script type="text/javascript">
	//加载驱动JS
	$.getScript($basePath + '/style/js/index/log.js');
</script>